package controllers

import (
	"github.com/astaxie/beego"
	//"fmt"
	//"beego/testApp/common/class"
	"beego/testApp/common/tool"
	"beego/testApp/common/student"
// 	"time"
	
)

type GetStuListByCidController struct {
	beego.Controller
}

func (c *GetStuListByCidController) Get() {

	cid := c.GetString("cid")

	var stutemp []student.Student
	
	stu := &student.Student{}

	stutemp = stu.StuListByCid( cid)

	c.Data["list"] = stutemp
 
	tool.Pic("get the student list by cid ",stutemp)
	   
	c.TplName = "stulistbycid.html"
	 
}
